package com.kevis.zhunblog.core.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色表
 * @TableName t_role
 */
@TableName(value ="t_role")
@Data
public class RoleEntity implements Serializable {
    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色代码
     */
    @TableField(value = "role_code")
    private String roleCode;

    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    private String roleName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 排序,默认6666
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 角色介绍
     */
    @TableField(value = "summary")
    private String summary;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}